package com.cn.transfer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.transfer.common.entity.VvPuPurchaseRequisition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 向伟典
 * @date: 2023/9/20 16:34
 * @Description: ${description}
 */
public interface VvPuPurchaseRequisitionMapper extends BaseMapper<VvPuPurchaseRequisition> {
    List<VvPuPurchaseRequisition> byReviewStatus();

    void insertPurchaseRequisition(VvPuPurchaseRequisition vvPuPurchaseRequisition);

    int inquireIsExist(@Param("purchaseRequisitionId") Integer purchaseRequisitionId);

    VvPuPurchaseRequisition byReviewUnAudit(@Param("code") String code);

    void deletPurchaseRequisition(@Param("purchaserequisitionid") Integer purchaserequisitionid);

    List<VvPuPurchaseRequisition> requisitionNotNullList();

    List<VvPuPurchaseRequisition> byChangedateList();

    VvPuPurchaseRequisition byDocumentnumber(Integer purchaserequisitionid);
    VvPuPurchaseRequisition byDocumentnumberCode(String documentCode);

    List<String> byChangedateListCode();

    List<String> byChangedateListCodeDelete();

     Integer inquireIsExistPu(@Param("code") String code);
}